package restaurant;

/**
 * Represents an order that was placed. This class contains information about a
 * single order, i.e. the order number and the items in that ordered.
 * 
 * @author Odessa
 */

public class Order
{

	/** The order number. */
	private int orderNo;

	/** The item number. */
	private int itemNo;

	/** The price of the item when this order was placed. */
	private double currentPrice;



	/**
	 * Instantiates a new order.
	 * 
	 * @param orderNo the order number of the order to be created.
	 * @param itemNo the item number of the item ordered.
	 * @param currentPrice the current price of the item ordered.
	 */
	public Order(int orderNo, int itemNo, double currentPrice) {
		this.orderNo = orderNo;
		this.itemNo = itemNo;
		this.currentPrice = currentPrice;
	}



	/**
	 * Gets the order number of this order. The order number is used to uniquely
	 * identify each order placed.
	 * 
	 * @return the order number of this order.
	 */
	public int getOrderNo()
	{
		return orderNo;
	}



	/**
	 * Gets the item number of the ordered item.
	 * 
	 * @return the item number of the ordered item.
	 */
	public int getItemNo()
	{
		return itemNo;
	}



	/**
	 * Gets the price of the item when the order was placed.
	 * 
	 * @return the current price of the item.
	 */
	public double getCurrentPrice()
	{
		return currentPrice;
	}

}
